package com.jyy.prefabricated.controller;

import com.jyy.prefabricated.entity.OfflineOrder;
import com.jyy.prefabricated.service.OfflineOrderService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 题目详情表(OfflineOrder)表控制层
 *
 * @author makejava
 * @since 2021-07-05 17:04:50
 */
@RestController
@RequestMapping("/api")
public class OfflineOrderController {
    /**
     * 服务对象
     */
    @Resource
    private OfflineOrderService offlineOrderService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("/offlineOrder")
    public OfflineOrder selectOne(Integer id) {
        return this.offlineOrderService.queryById(id);
    }

}
